#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.common;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;


/**
 * @desc 当前环境获取
 */
@Component
public class CurrentProfile {

    @Autowired
    private Environment env;

    /**
     * @return
     */
    public String getProfile() {
        return env.getProperty("spring.profiles.active");
    }
}
